<?php
header("Cache-Control: no-cache"); 
header('Content-Type: text/html; charset=ISO-8859-1'); 

include("BD/connexion.php");

mysql_query("UPDATE comptes SET enattente = 0 WHERE idcompte = ".$_GET['idc']."");
$compte = mysql_fetch_array(mysql_query("SELECT * FROM comptes WHERE idcompte = ".$_GET['idc'].""));
mysql_query("INSERT INTO nouvelles VALUES (NULL, '".$compte['pseudo']." s\'est inscrit sur le site The Majestics.', ".$_GET['idc'].", NOW())");

header("Location: Accueil-".$_GET['idc'].".html");
?>